<template>
  <div class="back" @click="back">
    <SvgIcon icon-class="ic_返回" />
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';

const router = useRouter();
const back = () => {
  router.push({ path: `/scene/list` });
};
</script>

<style lang="less" scoped>
.back {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 16px;
  font-size: 20px;
  cursor: pointer;
  &::before {
    position: absolute;
    top: 2px;
    left: 0;
    content: '';
    display: inline;
    width: 1px;
    height: 16px;
    background-color: #585858;
  }
}
</style>
